package com.ruoyi.web.controller.tool;

import com.ruoyi.common.utils.ip.IpUtils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.core.env.Environment;

/**
 * @author fangzhuan
 * @date 2022年08月30日 17:26
 */

@RequestMapping("/ruoyi/jimu")
public class JimuController {
    @Autowired
    Environment environment;

    @GetMapping("/index")
    public String index(){
        String hostIp = IpUtils.getHostIp();
        String property = environment.getProperty("ruoyi.reportUrl");
        String format = String.format(property, hostIp);
        return format+"/jmreport/list";
    }

}
